#!/media/DISK_A1/system/usr/bin/lua

require('keevi');

output = os.capture('/media/DISK_A1/system/bin/opkg '.._GET.action..' '.._GET.package..' 2>&1', true);

output = string.gsub(output, '\n', '<br>');

--_HEADERS["Content-type"] = "application/json;";

callback = _GET.callback or 'callback';
echo(callback.."("..json.encode(output)..");");

